import { EventBase, ISearchBarEvent } from '@ibiz-template/runtime';
import { IFilterData, IGroupData } from './i-group-data';

export interface IFilterBarEvent extends ISearchBarEvent {
  /**
   * 新建分组
   */
  onNewGroup: {
    event: EventBase;
    emitArgs: undefined;
  };
  /**
   * 保存过滤器
   */
  onSaveFilter: {
    event: EventBase;
    emitArgs: { filter: IFilterData };
  };
  /**
   * 重命名过滤器
   */
  onRenameFilter: {
    event: EventBase;
    emitArgs: { filter: IFilterData };
  };
  /**
   * 分组改变
   */
  onGroupChange: {
    event: EventBase;
    emitArgs: { group: IGroupData };
  };
}
